<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="avicit.platform6.core.locale.PlatformLocalesJSTL"%>
<%@page import="java.util.Locale"%>
<%@page import="avicit.platform6.api.session.SessionHelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="pt6" uri="/WEB-INF/tags/platform6.tld"%>
<%@ taglib prefix="sec" uri="/WEB-INF/tags/shiro.tld"%>
<%@page import="avicit.platform6.api.sysshirolog.impl.AfterLoginSessionProcess"%>
<% 
Object lang=session.getAttribute(AfterLoginSessionProcess.SESSION_CURRENT_LANGUAGE_CODE);
String languageCode="zh_CN";
if(lang!=null){
	languageCode=lang.toString();
}
	Locale locale =SessionHelper.getLocaleByUser(request);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>项目团队模板-编辑角色页面</title>
<base href="<%=ViewUtil.getRequestPath(request)%>">
 <link href="static/css/custom/lantop/css/custom.css" type="text/css"  rel="stylesheet">
<jsp:include page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<script type="text/javascript" src="avicit/cbb/techclass/tabledefine/commtempletmanager/comm_templet_edit.js"></script>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
<script type="text/javascript"
	src="avicit/cbb/techclass/tabledefine/commtempletmanager/locale/language_<%=languageCode%>.js"></script>
<script type="text/javascript">
/**
 * 初始化数据
 */
$(function(){
	//处理IE6下div层遮盖form表单，造成文本框无法获取焦点问题
	$("input[type='text'][readonly!='readonly']:first").focus();
});
var baseurl = '<%=request.getContextPath()%>';
var dialogId = "${dialogId}"; //打开页面传递的模块ID
</script>
</head>
<body class="easyui-layout" data-options="region:'center'" fit="true">
	<div data-options="region:'north',border:false" style="height: 40px;">
		<div id="toolbar" class="datagrid-toolbar datagrid-toolbar-extend foot-formopera">
			<table class="tableForm" border="0" cellspacing="1" width="100%">
				<tr>
					<td align="left">
				       	<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_edit_button_resetButton">		
							<%-- 重置 --%>
							<a id="resetButton" style="margin-top:17px;margin-left:30px;"  class="easyui-linkbutton selbtn " onclick="resetForm('formEdit', 'edit');" href="javascript:void(0);">
							<img  src="avicit/im/lantop/common/search/image/icon_tool039_blue.png">
							<span  class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.add.reset","i18n.lantop",locale)%></span>
							</a>
						</sec:accesscontrollist>
					</td>
				</tr>
			</table>
		</div>
	</div>
	<div region="center" border="false" style="height: 0; overflow: hidden; border: false;">
		<form id="formEdit" method="post">
			<input name="parentId" value="${commTempletInfo.parentId}" type="hidden" />
			<input name="id" value="${commTempletInfo.id }" type="hidden" />
			<table class="form_commonTable"  style="width:96% !important;margin-left: 1px;">
   				<tr>
   					<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_edit_formEdit_propName">	
						<%-- 编号 --%>
						<th width="15%" align="right"><span class="remind">*</span><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.num","i18n.lantop",locale)%>：</th>
						<td width="35%">
							<input class="easyui-validatebox" title='<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.num","i18n.lantop",locale)%>' type="text" name="tempCode" id="tempCode" 
				  					value="${commTempletInfo.tempCode}" data-options="required:true, validType:['length[0,64]', 'specialChars']"></input>
						</td>
					</sec:accesscontrollist>
					<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_edit_formEdit_propName">	
						<%-- 名称 --%>
						<th width="15%" align="right"><span class="remind">*</span><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.name","i18n.lantop",locale)%>：</th>
						<td width="35%">
							<input class="easyui-validatebox" title='<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.name","i18n.lantop",locale)%>' type="text" name="tempName" id="tempName" 
				  					value="${commTempletInfo.tempName}" data-options="required:true, validType:['length[0,64]', 'specialChars']"></input>
						</td>  	
					</sec:accesscontrollist>
   				</tr>
   				<tr>
   					<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_edit_formEdit_tempType">		
						 <%-- 类型 --%>
						 <th width="15%" align="right"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.type","i18n.lantop",locale)%>：</th> 
						 <td width="35%" class="input-readonly">
						 	<select disabled="disabled" class="easyui-validatebox disabled" name="tempType" id="tempType" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.type","i18n.lantop",locale)%>" data-options="required:true, editable:false, panelHeight:'auto',onShowPanel:comboboxOnShowPanel">
								<%-- 模版夹 --%>
								<option value="F" <c:if test="${commTempletInfo.tempType eq 'F'}">SELECTED</c:if> ><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.type.templateFolder","i18n.lantop",locale)%></option>
                                <%-- 模版 --%>
                                <option value="C" <c:if test="${commTempletInfo.tempType eq 'C'}">SELECTED</c:if> ><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.type.template","i18n.lantop",locale)%></option>
                                <%-- 系统标识 --%>
                                <option value="S" <c:if test="${commTempletInfo.tempType eq 'S'}">SELECTED</c:if> ><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.type.systemSign","i18n.lantop",locale)%></option>
							</select>
						 </td>
					</sec:accesscontrollist>
					<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_edit_formEdit_tempModelType">
						<%-- 模板类型 --%>
						 <th width="15%" align="right" id="tempModelTypeTh"><span class="remind">*</span><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.add.tempModelType","i18n.lantop",locale)%>：</th>
						 <td width="35%" id="tempModelTypeTd">
						 	<pt6:syslookup name="tempModelType" id="tempModelType" title="模板类型" isNull="false" lookupCode="LANTOP_TEMPLET_MODELTYPE"
								defaultValue='${commTempletInfo.tempModelType}'
								dataOptions="editable:false,panelHeight:'auto',onShowPanel:comboboxOnShowPanel,validType:'extendsIsNull'">
							</pt6:syslookup>
						 </td>		
					</sec:accesscontrollist>
   				</tr>
   				<tr>
   					<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_edit_formEdit_sysId">		
						 <%-- 系统标识 --%>
						 <th width="15%" align="right"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.systemSign","i18n.lantop",locale)%>：</th>
						 <td width="85%" colspan="3" class="input-readonly">
						  	<select class="easyui-validatebox disabled" name="sysId" id="sysId" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.systemSign","i18n.lantop",locale)%>" data-options="required:true, editable:false, panelHeight:'auto',onShowPanel:comboboxOnShowPanel" disabled="disabled">
								<option value="${commTempletInfo.sysId}">${sysId}</option>
							</select>
						 </td>
					</sec:accesscontrollist>
   				</tr>
   				<tr>
   					<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_edit_formEdit_remark">		
						<%-- 备注 --%>
						<th width="15%" align="right"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.comment","i18n.lantop",locale)%>：</th>
						<td colspan="3">
							<textarea class="textareabox" validType="length[0,255]"  style="width:99% !important;"
										 title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.referenceTemplateTree.edit.comment","i18n.lantop",locale)%>" name="remark" id="remark">${commTempletInfo.remark}</textarea>
						</td>
					</sec:accesscontrollist>
   				</tr>
   			</table>
			<input name="orgId" value="${commTempletInfo.orgId}" type="hidden" />
			<input name="isSysInit" value="${commTempletInfo.isSysInit}" type="hidden" />
		</form>
	</div>
	<div data-options="region:'south',border:false" style="height: 40px;">
			<table class="tableForm" border="0" cellspacing="1" width="100%">
				<tr>
					<td align="center">
						<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_edit_button_saveButton">		
							<%-- 提交 --%>
							<a id="saveButton" class="easyui-linkbutton selbtn" onclick="saveForm('formEdit', 'saveButton');" href="javascript:void(0);">
							<img src="avicit/im/lantop/documents/Filecollection/img/tick.png">
							<span class="selbtc">确定</span>
							</a>
						</sec:accesscontrollist>
				    
				       	<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_edit_button_backButton">		
							<%-- 返回 --%>
							<a id="backButton" style="margin-left:10px;" class="easyui-linkbutton selbtn" onclick="closeWindow();" href="javascript:void(0);">
							<img src="avicit/im/lantop/documents/Filecollection/img/close.png">
							<span>取消</span>
							</a>
						</sec:accesscontrollist>
					</td>
				</tr>
			</table>
		
	</div>
</body>
</html>